package com.pbdevj.ssm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pbdevj.ssm.bean.Department;
import com.pbdevj.ssm.dao.DepartmentMapper;
import com.pbdevj.ssm.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService
{
	@Autowired
	private DepartmentMapper departmentMapper;
	
	@Override
    public List<Department> getDepartments()
    {
    	return this.departmentMapper.selectByExample(null);
    }
}
